
package com.gitee.jmash.storage.mapper;

import java.util.List;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.crenjoy.proto.mapper.BeanMapper;
import com.crenjoy.proto.mapper.ProtoMapper;
import com.gitee.jmash.core.orm.DtoPage;
import com.gitee.jmash.core.orm.DtoTotal;
import com.gitee.jmash.storage.entity.StorageOrganInfoEntity;
import jmash.storage.protobuf.StorageOrganInfoCreateReq;
import jmash.storage.protobuf.StorageOrganInfoModel;
import jmash.storage.protobuf.StorageOrganInfoPage;

/**
 * StorageOrganInfoMapper.
 *
 * @author <a href="mailto:service@crenjoy.com">crenjoy</a>
 */
@Mapper
public interface StorageOrganInfoMapper extends BeanMapper, ProtoMapper {

  StorageOrganInfoMapper INSTANCE = Mappers.getMapper(StorageOrganInfoMapper.class);

  List<StorageOrganInfoModel> listStorageOrganInfo(List<StorageOrganInfoEntity> list);

  StorageOrganInfoPage pageStorageOrganInfo(DtoPage<StorageOrganInfoEntity, DtoTotal> page);

  StorageOrganInfoModel model(StorageOrganInfoEntity entity);

  StorageOrganInfoEntity create(StorageOrganInfoCreateReq req);

  StorageOrganInfoEntity clone(StorageOrganInfoEntity entity);

}
